package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by DK on 16/9/18.
 * 商家门店DTO
 */
public class MerchantStoreDto extends DtoEntity {

    /**
     * 名称
     */
    private String name;

    /**
     * 类型(实体店:STORE,网店:SHOP)
     */
    private String type;


    /**
     * 地区ID集合
     */
    private List<Long> locationIds;

    /**
     * 地址
     */
    private String address;

    /**
     * 网店(网址)
     */
    private String site;

    /**
     * 电话(手机/座机)
     */
    private String phone;


    /**
     * 省份ID
     */
    private Long proviceId;

    /**
     * 城市ID
     */
    private Long cityId;

    /**
     * 地区ID
     */
    private Long locationId;

    private String proviceName;

    private String cityName;

    private String locationName;

    private String locationStr;

    public String getLocationStr() {
        return locationStr;
    }

    public void setLocationStr(String locationStr) {
        this.locationStr = locationStr;
    }

    public Long getProviceId() {
        return proviceId;
    }

    public void setProviceId(Long proviceId) {
        this.proviceId = proviceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getProviceName() {
        return proviceName;
    }

    public void setProviceName(String proviceName) {
        this.proviceName = proviceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    /**

     * 状态(启用:ENABLE,禁用:DISABLE,暂停:PAUSE)
     */
    private String status;

    /**
     * 门店编号
     */
    private String number;

    /**
     * 是否支持现有所有产品在此店兑换或自提(是:YES,否:NO)
     */
    private String exchange;

    /**
     * 介绍
     */
    private String introduction;

    /**
     * 商家名称
     */
    private String merchantName;

    /**
     * 商家ID
     */
    private Long merchantId;

    /**
     * 门店核销员工总数
     */
    private Long verifierCount;

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getVerifierCount() {
        return verifierCount;
    }

    public List<Long> getLocationIds() {
        if(locationIds==null){
            locationIds=new ArrayList<Long>();
        }
        return locationIds;
    }

    public void setLocationIds(List<Long> locationIds) {
        this.locationIds = locationIds;
    }

    public void setVerifierCount(Long verifierCount) {
        this.verifierCount = verifierCount;
    }

    @Override
    public String toString() {
        return "MerchantStoreDto{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", locationIds=" + locationIds +
                ", address='" + address + '\'' +
                ", site='" + site + '\'' +
                ", phone='" + phone + '\'' +
                ", proviceId=" + proviceId +
                ", cityId=" + cityId +
                ", locationId=" + locationId +
                ", proviceName='" + proviceName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", locationName='" + locationName + '\'' +
                ", locationStr='" + locationStr + '\'' +
                ", status='" + status + '\'' +
                ", number='" + number + '\'' +
                ", exchange='" + exchange + '\'' +
                ", introduction='" + introduction + '\'' +
                ", merchantName='" + merchantName + '\'' +
                ", merchantId=" + merchantId +
                ", verifierCount=" + verifierCount +
                '}';
    }
}
